package com.grm.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * desc: 日志实体类
 *
 * @author gaorimao
 * @since 2021-3-14
 */
@Data
@ToString
public class SysLog{
	private Long id;
	//操作人username
	private String username;
	//请求类型,0=ajax,1=普通请求
	private int type; 
	//请求动作
	private String action;
	//请求主机
	private String host;
	//请求路径
	private String uri;
	//请求方式
	private String httpMethod;
	//请求类的方法
	private String classMethod;
	//请求参数
	private String params;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
	private Date createTime;
}
